﻿<UserControl x:Class="ModuleA.DefaultViewA"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" 
    xmlns:local="clr-namespace:ModuleA"    
    Height="200" Width="294">    
    <UserControl.Resources>
        <local:StockDataCollection x:Key="StockDataCollection"/>
    </UserControl.Resources>
    <Grid>
        <chartingToolkit:Chart Title="Stock Performance">
            <!-- Stock price and volume -->
            <chartingToolkit:BubbleSeries
                            Title="ABCD"
                            ItemsSource="{StaticResource StockDataCollection}"
                            IndependentValueBinding="{Binding Date}"
                            DependentValueBinding="{Binding Price}"
                            SizeValueBinding="{Binding Volume}"
                            />
            <chartingToolkit:Chart.Axes>
                <chartingToolkit:DateTimeAxis
                                Orientation="X">
                </chartingToolkit:DateTimeAxis>
            </chartingToolkit:Chart.Axes>
        </chartingToolkit:Chart>
    </Grid>
</UserControl>
